// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引入国际化
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)


// 国际化实例
const i18n = new VueI18n({
  locale: 'en', // 语言标识
  messages: {
    'zh': require('./common/lang/zh.js'),
    'en': require('./common/lang/en.js')
  }
})

Vue.config.productionTip = false
Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  i18n,
  components: { App },
  template: '<App/>'
})
